﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="MediaMonitor.SiteFiles.NewsAlertvideo"
    CodeBehind="NewsAlertvideo.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Video</title>
    
    <link href="../Demo/video-js.css" rel="stylesheet" type="text/css" />
  <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
    <script src="../Demo/video.js" type="text/javascript"></script>
  <script>
      videojs.options.flash.swf = "http://newsalert.do/Demo/video-js.swf";
  </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="pnlNoVideo" runat="server" Visible="false">
            <h3 style="color: Red;">
                <asp:Label ID="lblMsg" runat="server">No Video Found</asp:Label></h3>
        </asp:Panel>
        <asp:Panel ID="pnlVideo" runat="server" Visible="true">
            <center>
                <% if (ext == "flv")
                   { %>
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="420" height="344">
                    <!--[if !IE]>-->
                    <object type="application/x-shockwave-flash" data="http://newsalert.do/sitefiles/player.swf"
                        width="420" height="344">
                        <!--<![endif]-->
                        <param name="movie" value="http://newsalert.do/sitefiles/player.swf" />
                        <param name="wmode" value="transparent" />
                        <param name="bgcolor" value="#FFFFFF" />
                        <param name="quality" value="high" />
                        <param name="allowFullScreen" value="true" />
                        <param name="allowscriptaccess" value="always" />
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                                alt="Get Adobe Flash player" />
                        </a>
                        <param name="flashvars" value="vdo=http://newsalert.do/NewsAlert/Video/<%=curVideo%>&amp;autoplay=false" />
                        <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
                <% }
                   else if (ext == "mp4")
                   { %>
                <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none"
                    width="640" height="264" poster="http://video-js.zencoder.com/oceans-clip.png"
                    data-setup="{}">
    <source src="../NewsAlert/Video/<%=curVideo%>"" type='video/mp4' />
  
    <track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
  </video>
                <% }
                   else
                   { %>
                <object id="Object1" width="192" height="190" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
                    standby="Loading Windows Media Player components..." type="application/x-oleobject">
                    <param name="FileName" value="../NewsAlert/Video/<%=curVideo%>" />
                    <param name="autostart" value="false" />
                    <param name="ShowControls" value="true" />
                    <param name="ShowStatusBar" value="false" />
                    <param name="ShowDisplay" value="false" />
                    <embed type="application/x-mplayer2" src="../NewsAlert/Video/<%=curVideo%>" name="MediaPlayer"
                        width="<%=width%>" height="<%=height%>" showcontrols="1" showstatusbar="0" showdisplay="0"
                        autostart="0"> </embed>
                </object>
                <% } %>
            </center>
        </asp:Panel>
        <asp:LinkButton ID="lnkDownload" runat="server"> </asp:LinkButton>
    </div>
    </form>
</body>
</html>
